package com.base.common.serializer;


/**
 * 序列化和反序列化的接口
 */
public interface Serializer {

    public byte[] serializeRaw(Object data);

   public  String serialize(Object data);

    public  <T> T deserialize(String content);

    public <T> T deserialize(byte[] content);

}
